import request from 'utils/request'

// 获取收款账号列表
export function getList() {
  return request({
    url: '/PaymentAccount/GetList',
    method: 'post'
  })
}

// 获取收款二维码
export function getPayQrUrl() {
  return request({
    url: '/PaymentAccount/GetPayQrUrl',
    method: 'post'
  })
}

// 设置收款二维码
export function setPayQrUrl(model) {
  return request({
    url: '/PaymentAccount/SetPayQrUrl',
    method: 'post',
    data: {
      WechatQrUrl: model.weChat.value,
      AlipayQrUrl: model.alipay.value
    }
  })
}
